<template>
  <div class="box">
    <h1>A组件,{{ counter.num }}----{{ counter.doubleNum }}</h1>
    <van-button type="primary" @click="counter.increment">+</van-button>
    <div v-for="item in banner.list" :key="item.objectId">
      {{ item.desc }}
    </div>
  </div>
</template>

<script setup lang="ts">
import { useBanner } from "../../store/banner";
import { useCounter } from "../../store/count";
const counter = useCounter();
const banner = useBanner();
</script>

<style lang="scss" scoped>
.box {
  height: 400px;
  border: 1px solid #333;
}
</style>
